import { forwardRef, Inject, Injectable } from "@nestjs/common";
import { MoonService } from "../moon/moon.service";

@Injectable()
export class MichaelService {
    public name:string = "I am Michael"
    constructor(@Inject(forwardRef(() => MoonService)) private readonly moonService: MoonService) { }

    getMessage():string{
        return "This is in Michael module. But I can call Moon's message: " + this.moonService.name;
    }
}
